package com.chart.chart.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chart.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("chart_vouchers")
public class ChartVouchers implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 参数主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 兑换券类型
     * 1.一个月
     * 2.3个月
     * 3.12个月,
     * 4.一次代做
     */
    @TableField("type")
    private Integer type;
    /**
     * 兑换码
     */
    @TableField("value")
    private String value;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;
    /**
     * 有效时间
     */
    @TableField("expired_time")
    private String expiredTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private String updateTime;
    /**
     * 兑换券状态
     */
    @TableField("status")
    private Integer status;
    /**
     * 逻辑删除:0正常 1删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;


}
